package com.koala.client;


import com.koala.request.LoginReqDTO;
import com.koala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "auth-service", contextId = "authClient", path = "/api-auth")
public interface AuthFeignClient {
    @PostMapping("/v1/auth/login")
    Result<String> login(@RequestBody LoginReqDTO loginReqDTO);
}
